package com.youlai.boot.modules.area.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youlai.boot.modules.area.model.AreaProduct;
import com.youlai.boot.modules.area.model.AreaProductForm;
import com.youlai.boot.modules.area.model.AreaProductVO;
import java.util.List;

public interface AreaProductService extends IService<AreaProduct> {
    Page<AreaProductVO> getAreaProductPage(Long areaId, Integer showFlag, int pageNum, int pageSize);

    AreaProductVO getAreaProductById(Long id);

    List<AreaProductVO> listByAreaId(Long areaId);

    Long saveAreaProduct(AreaProductForm form);

    void updateAreaProduct(AreaProductForm form);

    boolean deleteAreaProduct(Long id);
}